#!/bin/bash

#TARS="tarsAdminRegistry tarsregistry tarsnotify tarsconfig tarsnode tarslog tarspatch tarsproperty tarsqueryproperty tarsquerystat  tarsstat"
#TARS="tarsAdminRegistry tarsregistry"
TARS="tarsnode"

cd TARS_PATH

for var in ${TARS};
do
  if [ -d ${var} ]; then
    echo "stop ${var}"
    TARS_PATH/${var}/util/stop.sh
    sleep 1
    echo "start ${var}"
    TARS_PATH/${var}/util/start.sh
    sleep 1
  fi
done


